/*
 * @Author: qf
 * @Date: 2021-05-17 10:34:53
 * @LastEditTime: 2021-07-12 10:47:42
 * @LastEditors: maoyu
 * @Description: 所有接口公共出口
 */
// TODO  循环把文件夹里文件读出来，不单独重写，可参照vue-element-admin，modules

const modulesFiles = require.context('./modules', true, /\.js$/)

const modules = modulesFiles.keys().reduce((modules, key) => {
  return { ...modules, ... modulesFiles(key) }
}, {})

export default {
  ...modules
}

// // auth
// import * as client from './auth/client'

// // file
// import * as fileInfo from './file/fileInfo'
// import * as apply from './file/apply'

// // system
// import * as dictionary from './system/dictionary'
// import * as menus from './system/menus'
// import * as permissions from './system/permissions'
// import * as roles from './system/roles'
// import * as serviceLog from './system/serviceLog'
// import * as sysSchool from './system/sysSchool'
// import * as sysConfig from './system/sysConfig'
// import * as sysFileInfo from './system/sysFileInfo'
// import * as users from './system/users'

// // eSchool
// import * as meeting from './eSchool/meeting'
// import * as contact from './eSchool/contact'
// import * as origan from './eSchool/origan'
// import * as research from './eSchool/research'
// import * as weekPlan from './eSchool/weekPlan'
// import * as task from './eSchool/task'
// import * as affairsNotice from './eSchool/affairsNotice'

// // educational
// import * as term from './educational/term'
// import * as courseTime from './educational/courseTime'
// import * as grade from './educational/grade'
// import * as eduSubjectInfo from './educational/eduSubjectInfo'

// // teacher
// import * as teacher from './teacher/teacher'

// // students
// import * as stuClassInfo from './modules/students/stuClassInfo'
// import * as stuStudentInfo from './modules/students/stuStudentInfo'
// import * as dimension from './modules/students/dimension'
// // political
// import * as questionnaire from './modules/political/questionnaire'
// import * as inspect from './modules/political/inspect'

// // webSocket
// import * as webSocket from './websocket/webSocket'
// import * as websocketNoticeRecord from './websocket/websocketNoticeRecord'
// import * as websocketTypeConfig from './websocket/websocketTypeConfig'

// // 排课courseScheduling
// import * as eduPaike from './courseScheduling/eduPaike'
// import * as eduPaikeRuleTeacher from './courseScheduling/eduPaikeRuleTeacher'
// import * as eduPaikeRuleWeek from './courseScheduling/eduPaikeRuleWeek'
// import * as eduPaikeRuleManage from './courseScheduling/eduPaikeRuleManage'
// import * as eduPaikeRuleSubject from './courseScheduling/eduPaikeRuleSubject'

// // life
// import * as life from './life/life'

// export default {
//   ...client,
//   ...dictionary,
//   ...menus,
//   ...permissions,
//   ...apply,
//   ...roles,
//   ...serviceLog,
//   ...sysSchool,
//   ...sysConfig,
//   ...sysFileInfo,
//   ...users,
//   ...fileInfo,
//   ...meeting,
//   ...contact,
//   ...origan,
//   ...research,
//   ...weekPlan,
//   ...term,
//   ...courseTime,
//   ...grade,
//   ...eduSubjectInfo,
//   ...teacher,
//   ...stuClassInfo,
//   ...stuStudentInfo,
//   ...questionnaire,
//   ...webSocket,
//   ...websocketNoticeRecord,
//   ...websocketTypeConfig,
//   ...affairsNotice,
//   ...task,
//   ...eduPaike,
//   ...eduPaikeRuleTeacher,
//   ...eduPaikeRuleWeek,
//   ...eduPaikeRuleManage,
//   ...eduPaikeRuleSubject,
//   ...dimension,
//   ...life,
//   ...inspect
// }
